package com.ubxtech.annotation;

import java.lang.annotation.*;

/**
 * 防重提交注解配置 https://blog.csdn.net/m0_64355285/article/details/132754777
 * @author Victor.Xiao
 * @since 2024-04-12 15:58
*/
@Target({ElementType.METHOD,ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RepeatSubmit {
    /**
     * 校验类型,默认参数校验
     */
    RepeatValidateType type() default RepeatValidateType.PARAM;

    /**
     * 校验的时间段,单位秒,默认两秒
    */
    int time() default 2;
}
